import 'config_item.dart';
import 'configs.dart';

class AppConfigs extends Configs {
  late final trialVersion = ConfigItem(
    box: Configs.box,
    key: "app.trialVersion",
    defValue: true,
  );

  late final installDateTime = ConfigItem<int?>(
    box: Configs.box,
    key: 'app.installDateTime',
    defValue: null,
  );

  late final lastLaunchTime = ConfigItem<int?>(
    box: Configs.box,
    key: "app.lastLaunchTime",
    defValue: null,
  );

  late final appSerial = ConfigItem<String?>(
    box: Configs.box,
    key: 'app.appSerial',
    defValue: null,
  );

  late final savedHostUrl = ConfigItem<String?>(
    box: Configs.box,
    key: 'app.savedHostUrl',
    defValue: 'http://shupian.online:5666',
  );

  late final savedUsername = ConfigItem<String?>(
    box: Configs.box,
    key: 'app.savedUsername',
    defValue: 'jackstone',
  );

  late final token = ConfigItem<String?>(
    box: Configs.box,
    key: 'app.token',
    defValue: null,
  );

  @override
  void reset() {}
}
